<html>
<head><meta charset="utf-8"><title>cargo target default features · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/cargo.20target.20default.20features.html">cargo target default features</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="137026294"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/cargo%20target%20default%20features/near/137026294" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/cargo.20target.20default.20features.html#137026294">(Nov 02 2018 at 13:47)</a>:</h4>
<p>Can I change the <code>[features] default = [...]</code> key on a per target basis ?</p>



<a name="137026551"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/cargo%20target%20default%20features/near/137026551" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/cargo.20target.20default.20features.html#137026551">(Nov 02 2018 at 13:48)</a>:</h4>
<p>by per target I mean per target triple</p>



<a name="137027000"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/cargo%20target%20default%20features/near/137027000" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/cargo.20target.20default.20features.html#137027000">(Nov 02 2018 at 13:50)</a>:</h4>
<p>try <code>[target.&lt;target-triple&gt;.features]</code>, I think</p>



<a name="137027625"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/cargo%20target%20default%20features/near/137027625" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/cargo.20target.20default.20features.html#137027625">(Nov 02 2018 at 13:53)</a>:</h4>
<p>since <code>[target.*.dependencies]</code> works, it might be possible to do the same for other fields like that</p>



<a name="137027860"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/cargo%20target%20default%20features/near/137027860" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/cargo.20target.20default.20features.html#137027860">(Nov 02 2018 at 13:54)</a>:</h4>
<p>the manifest format part of the book only shows that for <code>.dependencies</code> but I'll give it a try</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>